home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
PERROR.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
276 b
|
12 lines
/* perror.c --- BIBLE pp. 89-90 */
#include <stdio.h>
#include <io.h>
main()
{
printf("We'll call \"close\" with an invalid file handle\n");
if (close (100) == -1)
{
/* Error occurred. Use perror to print error message */
perror("Error closing file");
}
}